package com.bonuo.erp.service.impl;

import com.bonuo.erp.domain.SupplierProduct;
import com.bonuo.erp.mapper.SupplierProductMapper;
import com.bonuo.erp.service.SupplierProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupplierProductServiceImpl implements SupplierProductService {
    @Autowired
    private SupplierProductMapper supplierProductMapper;
    @Override
    public List<SupplierProduct> selectSupplierProductList(SupplierProduct supplierProduct) {
        return supplierProductMapper.selectSupplierProductList(supplierProduct);
    }

    @Override
    public int insertSupplierProduct(SupplierProduct supplierProduct) {
        return supplierProductMapper.insertSupplierProduct(supplierProduct);
    }

    @Override
    public int updateSupplierProduct(SupplierProduct supplierProduct) {
        return supplierProductMapper.updateSupplierProduct(supplierProduct);
    }

    @Override
    public int deleteSupplierProductById(Integer id) {
        return supplierProductMapper.deleteSupplierProductById(id);
    }
}
